﻿using System;
using System.Collections.Generic;
using System.Data.Linq;
using System.Data.Linq.Mapping;
using System.Linq;
using System.Runtime.Serialization;
using System.Text;
using System.Threading.Tasks;

/**
 * 创建时间：2015/1/11 16:14:07
 * 作者：yong.blackcore
 * Email：itblackhole@outlook.com
 * QQ：50404503
 */
namespace ComicIsland.Common.Entities.LocalDatabase
{
    [DataContract]
    [Table]
    public class LDBComicChapterImage
    {
        /// <summary>
        /// 版本列，可以显著改进表的更新性能
        /// </summary>
        [Column(IsVersion = true)]
        private Binary _version;

        [Column(DbType = "INT NOT NULL IDENTITY", IsDbGenerated = true, IsPrimaryKey = true)]
        public int Id { get; set; }

        [DataMember]
        [Column]
        public int ComicId { get; set; }

        [DataMember]
        [Column]
        public int BookId { get; set; }

        [DataMember]
        [Column]
        public int PartId { get; set; }

        [DataMember]
        [Column]
        public string ComicName { get; set; }

        [DataMember]
        [Column]
        public string PartName { get; set; }

        [DataMember]
        [Column]
        public string ComicIdAndBookIdAndPartId { get; set; }

        [DataMember]
        [Column]
        public string Referer { get; set; }

        [DataMember]
        [Column]
        public string ImageUrl { get; set; }

        [DataMember]
        [Column]
        public string DownloadStatus { get; set; }
    }
}
